﻿@model AqpxFile
<form class="form-horizontal uiform" method="post"
      data-modal="true"
      data-table=".uitable"
      data-error-el=".alert-danger"
      data-on-submit-success="fx.mtfSuccess"
      action="@Url.Action("AuditSave")">
    <div class="modal-header">
        <button class="close" data-dismiss="modal" type="button" aria-label="Close">
            <span aria-hidden="true">&times;</span>
        </button>
        <h4 class="modal-title">培训资料审核</h4>
    </div>
    <div class="modal-body">
        @Html.AntiForgeryToken()
        @Html.HiddenFor(p => p.id)
        <div class="alert alert-danger fxhide"></div>

        <div class="form-group">
            <label class="control-label col-md-3">
                审核状态：
            </label>
            <div class="col-md-8">
                <div class="input-group">
                    <label class="checkbox-inline" style="padding-left: 0">
                        <input class="uicheck"
                               name="@nameof(Model.status)"
                               value="2" type="radio"
                               @Html.IsChecked(Model.status==2 || Model.status==0) />
                        <span>通过</span>
                    </label>
                    <label class="checkbox-inline">
                        <input class="uicheck"
                               name="@nameof(Model.status)" value="0"
                               type="radio" @Html.IsChecked(Model.status==0) />
                        <span>不通过</span>
                    </label>
                </div>
            </div>
        </div>

        <div class="form-group">
            <label class="control-label col-md-3">
                审核意见：
            </label>
            <div class="col-md-8">
                <textarea class="form-control" name="@nameof(Model.remark)" rows="3">@Model.remark</textarea>
            </div>
        </div>

    </div>
    <div class="modal-footer">
        <button class="btn btn-primary" type="submit">
            <i class="fa fa-save"></i> 确定
        </button>
        <button class="btn btn-default" type="button" data-dismiss="modal">
            <i class="fa fa-sign-in"></i> 关闭
        </button>
    </div>
</form>